<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
	<!ENTITY nbsp "&#160;">
]>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" encoding="utf-8"></xsl:output>

	<xsl:template match="/">
		<html xmlns="http://www.w3.org/1999/xhtml">
			<head>
				<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
				<title>
					<xsl:value-of select="film/titel" />
				</title>
				
				<style>
 				#table { 
 				border-style:solid;
 				padding:15px;
 				border-color:#0000FF;
				width:40%;
				border-collapse: collapse;
				}

 				  #table.center {
    				margin-left:auto; 
				    margin-right:auto;
				  }

 				#tablecolor {
 				background-color:#000066;
 				text-align:center;
 				color:#FFFFFF; 
 				}

				#workaround {
				background-color:#FFFFFF;
				color:#000000;
				}
				</style>
				
			</head>
			<body>
			<h1 align="center"><xsl:value-of select="film/titel" /></h1>
				<table class="center" border="4" id="table">
					<xsl:for-each select="film">
						<tr id="tablecolor">
							EAN
							<th id="workaround">
								<xsl:value-of select="ean" />
							</th>
						</tr>
						<tr id="tablecolor">
							ASIN
							<th id="workaround">
								<xsl:value-of select="asin" />
							</th>
						</tr>
						<tr id="tablecolor">
							Typ
							<th id="workaround">
								<xsl:value-of select="cd/@type" />
							</th>
						</tr>
						<tr id="tablecolor">
							Name
							<th id="workaround">
								<xsl:value-of select="titel" />
							</th>
						</tr>
						<tr id="tablecolor">
							Darsteller
							<th id="workaround">
								<xsl:for-each select="person">
									<xsl:if test="./@job='darsteller'">
										<xsl:value-of select="./name" />
										,
									</xsl:if>
								</xsl:for-each>
							</th>
						</tr>
						<tr id="tablecolor">
							Regisseur
							<th id="workaround">
								<xsl:for-each select="person">
									<xsl:if test="./@job='regisseur'">
										<xsl:value-of select="./name" />
										,
									</xsl:if>
								</xsl:for-each>
							</th>
						</tr>

						<tr id="tablecolor">
							Sound
							<th id="workaround">

								<xsl:for-each select="sound">
									<xsl:value-of select="." />
									,
								</xsl:for-each>
							</th>
						</tr>

						<tr id="tablecolor">
							Sprache
							<th id="workaround">
								<xsl:for-each select="sprachen">
									<xsl:value-of select="." />
									,
								</xsl:for-each>
							</th>
						</tr>
						<tr id="tablecolor">
							FSK
							<th id="workaround">
								<xsl:value-of select="fsk" />
							</th>
						</tr>
						<tr id="tablecolor">
							Jahr
							<th id="workaround">
								<xsl:value-of select="jahr" />
							</th>
						</tr>
						<tr id="tablecolor">
							Länge
							<th id="workaround">
								<xsl:value-of select="laenge" />
							</th>
						</tr>
						<tr id="tablecolor">
							Link
							<th id="workaround">
								<a href="{ link }" >
									<xsl:value-of select="link" />
								</a>
							</th>
						</tr>
						<tr id="tablecolor">
							Cover
							<th id="workaround">
								
								<img src="{ cover/text() }"/>
								
							</th>
						</tr>
					</xsl:for-each>
				</table>
			</body>
		</html>
	</xsl:template>









</xsl:stylesheet>